package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.EXAM01.TASK2;

public class ViewsApplication {

	public static void main(String[] args) {

		Student_Entity student1 = new Student_Entity();
		student1.setRollNo(1);
		student1.setFullName("Trần Văn B");
		student1.setEmail("Btran.gmail.com");
		student1.setSex(true);
		student1.setAddress("88- Bà Triệu");
		student1.setMobiles("016573456");
		student1.setMark(8.5);

		Student_Entity student2 = new Student_Entity();
		student2.setRollNo(2);
		student2.setFullName("Nguyễn Thị Ánh");
		student2.setEmail("Anhnt@gmail.com");
		student2.setSex(false);
		student2.setAddress("1 Đông Tác");
		student2.setMobiles("016557484");
		student2.setMark(8.5);

		Student_Entity student3 = new Student_Entity();
		student3.setRollNo(3);
		student3.setFullName("Lý Liên Kiệt");
		student3.setEmail("Kietly@gmail.com");
		student3.setSex(true);
		student3.setAddress("5- Hàng Bài");
		student3.setMobiles("016663456");
		student3.setMark(8);

		Student_Controllers cObj1 = new Student_Controllers(student1);
		Student_Controllers cObj2 = new Student_Controllers(student2);
		Student_Controllers cObj3 = new Student_Controllers(student3);

		System.out.println("+Student info:\n "
				+ cObj1.printStudentInfo(student1));
		System.out.println("Check Mark: " + cObj1.checkMark(student1));

		System.out.println("\n+Student info:\n "
				+ cObj2.printStudentInfo(student2));
		System.out.println("Check Mark: " + cObj2.checkMark(student2));

		System.out.println("\n+Student info:\n "
				+ cObj3.printStudentInfo(student3));
		System.out.println("+Check Mark: " + cObj3.checkMark(student3));

		System.out.println("\n+Compare Student1 to Student2 "
				+ cObj1.compareTo(student1, student2));
		System.out.println("+Compare Student1 to Student3: "
				+ cObj1.compareTo(student1, student3));
		System.out.println("+Compare Student2 to Student3: "
				+ cObj2.compareTo(student2, student3));
	}

}
